package com.usian.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderDto {
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 车辆ID
     */
    private Integer carId;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 订单开始时间
     */
    private LocalDateTime startTime;

    /**
     * 订单结束时间
     */
    private LocalDateTime endTime;

    /**
     * 订单总价格
     */
    private BigDecimal totalPrice;

    /**
     * 订单创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 订单更新时间
     */
    private LocalDateTime updatedAt;

    /**
     * 提车地点
     */
    private String pickupLocation;

    /**
     * 订单总费用
     */
    private BigDecimal totalCost;



}
